import request from '@/utils/request'

//  *********  系统管理-权限设置  *********
/**   接口名称目录              功能
     
**/
//list
export  const  menuList = (search)=>
	request({
		url:'/sys/menu/get_menu_list',
		method:'get',
		params: {
            pageNo:search.pageNo,
            pageSize:search.pageSize,
        }  
	})

export  const  submitAddMenu = (url,form)=>
	request({
		url,
		method:'post',
		data:JSON.stringify(form)
	})
// 获取指定的菜单	
export  const  MenuDetail = (url,code)=>
	request({
		url,
		method:'get',
		params:{
			code
		}
	})

// 删除 菜单
export  const  delMenu = (url,code)=>
	request({
		url,
		method:'get',
		params:{
			code
		}
	})	

// 获取客户用户菜单列表
export  const  menuListCustomer = (search)=>
	request({
		url:'/sys/client_menu/get_client_menu_list',
		method:'get',
		params: {
            pageNo:search.pageNo,
            pageSize:search.pageSize,
        }  
	})